﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SchoolMana.aspx.cs" Inherits="HealthSystem.sysAdmin.SchoolMana" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
      <form id="form1" runat="server">
   <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="panle1" />
     <ext:Panel  runat="server" ID="panle1" Layout="Fit" Title="学校管理">
        <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                      <ext:Label ID="Label1" runat="server" Text="选择地区:"></ext:Label>
                      <ext:TriggerBox runat="server" ID="name" EnableEdit="false"></ext:TriggerBox>
                      <ext:HiddenField runat="server" ID="districtid"></ext:HiddenField>
                      <ext:HiddenField runat="server" ID="actionbt"></ext:HiddenField>
                      <ext:HiddenField runat="server" ID="SchoolCodeBtn"></ext:HiddenField>
                      <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server"></ext:ToolbarSeparator>
                      <ext:TriggerBox runat="server" ID="searchbox" EmptyText="输入学校名称查询" TriggerIcon="Search" OnTriggerClick="Search_Clik"></ext:TriggerBox>
                     <ext:ToolbarFill ID="ToolbarFill1" runat="server"></ext:ToolbarFill>
                     <ext:Button runat="server" Icon="Add" Text="新增学校" ID="Newbt"></ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Items>
            <ext:Grid runat="server" ID="Gird1" DataKeyNames="SchoollCode,schoolname" EnableTextSelection="true" AllowPaging="true" IsDatabasePaging="true" EnableRowNumber="true"
              ShowHeader="false" OnPageIndexChange="PageIndexChange" EnableRowDoubleClick="true" OnRowDoubleClick="Grid1_DoubleClick"
             OnRowCommand="Grid1_RowCommand">
                <Columns>
                    <ext:BoundField DataField="OrgName" HeaderText="体检机构" Width="150px" />
                    <ext:BoundField DataField="schoolname" HeaderText="学校名称" Width="150px" />
                    <ext:BoundField DataField="SchoolType" HeaderText="学校类型" Width="60px" />
                    <ext:BoundField DataField="LinkMan" HeaderText="联系人"  Width="60px" />
                    <ext:BoundField DataField="OfficePhone" HeaderText="电话" />
                    <ext:BoundField DataField="MobilePhone" HeaderText="手机" />
                    <ext:BoundField DataField="Email" HeaderText="邮箱" />
<%--                    <ext:BoundField DataField="XX_UserName" HeaderText="学校帐户" />--%>
                    <ext:BoundField DataField="cityname" HeaderText="所属城市" Width="60px" />
                    <ext:BoundField DataField="districtname" HeaderText="所属区县" Width="60px" />
                    <ext:CheckBoxField DataField="Permit" SortField="Permit" HeaderText="是否授权" RenderAsStaticField="true"
                             Width="50px" />
                    <ext:LinkButtonField HeaderText="授权操作" TextAlign="Center" Icon="Key" ConfirmText="更改授权状态？" ToolTip="使学校的授权状态更改" ConfirmTarget="Self"
                ColumnID="lbfAct" Width="40px" CommandName="permit" Text="" />
                    <ext:WindowField ColumnID="myWindowField" Width="40px" WindowID="Window1" HeaderText="修改学校"
                Icon="Pencil" ToolTip="编辑" DataTextFormatString="{0}" DataIFrameUrlFields="SchoollCode"
                DataIFrameUrlFormatString="~/School_Edit.aspx?id={0}" DataWindowTitleField="schoolname"
                DataWindowTitleFormatString="编辑 - {0}"  />
                </Columns>
            </ext:Grid>
        </Items>
    </ext:Panel>
     <ext:Window ID="Window1" CloseAction="HidePostBack" runat="server" IsModal="true" Hidden="true" Target="Self"
        EnableResize="true" EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank"
        Width="750px" Height="550px" OnClose="Window1_Close">
    </ext:Window>
    <ext:Window ID="Window2" CloseAction="HidePostBack" runat="server" IsModal="true" Hidden="true" Target="Self"
        EnableResize="true" EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank"
        Width="200px" Height="550px" OnClose="Window1_Close">
    </ext:Window>
    </form>
</body>
</html>
